package com.medical.data.service;

import com.medical.data.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.medical.data.vo.UpdatePasswordVo;
import com.medical.data.vo.UserInformationVo;
import com.medical.data.vo.UserLoginVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cj
 * @since 2024-02-06
 */
public interface UserService extends IService<User> {

    String login(UserLoginVo userLoginVo);

    User getUserByName(String username);

    User getUserById(String id);

    UserInformationVo getUserById();

    void updateUser(UserInformationVo userInformationVo);

    void updateAvatar(MultipartFile file,String name);

    void reg(UserLoginVo userLoginVo);

    List<User> getUserByDepartmentId(String departmentId);

    void updatePassword(UpdatePasswordVo updatePasswordVo);

    String uploadAvatar(MultipartFile file);

    int getUserNumber();

    int getTodayUserNumber();

    List<User> getUserByHs(String id);

    int getDataNumber(String id);

    List<User> getUserByKs(String id);

}
